package Part_Seven;

import java.math.*;

public class text40 {
	public static void main(String[] args) {
		int[] lalala = new int[100];
		for(int i = 0; i < lalala.length; i++) {
			lalala[i] = (int)(Math.random()*10);
		}
		hehehe(lalala);
		int num = 1;
		for(int item : lalala) {
			System.out.print(item + "\t");
			if(num%10==0){
				System.out.println("");
			}
			num++;
		}
		System.out.println(Math.PI);
	}
	private static int[] hehehe(int[] nums) {
		int temp = 0;
		for(int i = 0; i < nums.length - 1; i++){
			for(int j = 0; j < nums.length - 1 - i; j++){
				if(nums[j] > nums[j + 1]){
					temp = nums[j];
					nums[j] = nums[j + 1];
					nums[j+ 1] = temp;
				}
			}
		}
		return nums;
	}
}
